package com.niit.session10;

public class Cleaner {
	// 封装企业中的员工：保洁小妹和程序员。保洁小妹有姓名、性别、年龄、工资四个属性和扫地一个成员方法。
//	程序员有姓名、性别、年龄、工资、学历五个属性和打代码一个成员方法。
//	第一步：提炼属性
	private String name;
	private String gender;
	private int age;
	private double money;
	
	public void clean() {
		System.out.println(name+"开始扫地了");
	}

//	构造方法
//	生成构造方法快捷键：alt+shift+s:找到generate constructer
	public Cleaner() {
	}
//	快捷键：alt+shift+s:找到generate constructer
	public Cleaner(String name, String gender, int age, double money) {
		this.name = name;
		this.gender = gender;
		this.age = age;
		this.money = money;
	}
//	生成set和set方法快捷键：alt+shift+s:找到generate getters and setters
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}
	

}
